package com.acme.task3;

public class Task3Arrays {
	
	
	public static void avg(int summa, int kolichestvo){
		double average=summa/kolichestvo;
		System.out.println("Srednee "+average);
	}
	
	public static void main(String[] args) {
		for (int i = 1; i <= 50; i++) {
			System.out.println(i);
			}
		System.out.println("________________________________________________________________________");
		for (int i = 1; i <= 50; i++) {
			if (i%3==0){
				System.out.println("Chislo "+i+" kratno trem");
			}
		}
		System.out.println("________________________________________________________________________");
		int sum=0;
		int kol=50;
		int array[]=new int [kol];
		for (int i = 0; i < kol; i++) {
			array[i]=i+1;
//			System.out.println(array[i]);
			sum=sum+array[i];
			}
		System.out.println("________________________________________________________________________");
		avg(sum,kol);
				
	}
}
